libxl: don't set gnttab limits in soft reset case
authorJuergen Gross <jgross@suse.com>
Thu, 17 Jan 2019 16:40:59 +0000 (16:40 +0000)
committerIan Jackson <ian.jackson@eu.citrix.com>
Tue, 5 Feb 2019 11:42:34 +0000 (11:42 +0000)
commitdd492b8f64d9ad9d413289565bd074f025f8edde
treed7e9438aef34de868e965294087e291d075f49d6
parente2e3a1d75798781a8031feec0050e6e1c98187ca
libxl: don't set gnttab limits in soft reset case

In case of soft reset the gnttab limit setting will fail, so omit it.
Setting of max vcpu count is pointless in this case, too, so we can
drop that as well.

Without this patch soft reset will fail with:

libxl: error: libxl_dom.c:363:libxl__build_pre: Couldn't set grant table limits

Reported-by: Jim Fehlig <jfehlig@suse.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
Tested-by: Jim Fehlig <jfehlig@suse.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
tools/libxl/libxl_create.c
tools/libxl/libxl_dom.c
tools/libxl/libxl_internal.h